FROM node:10.9.0-alpine
RUN yarn config set registry https://registry.npm.taobao.org \
    && yarn global add nodemon webpack webpack-cli \
    && mkdir -p /app \
    && cd /app

# COPY package.json /app/

WORKDIR /app

VOLUME /app
#VOLUME /app/node_modules

EXPOSE 3000
